package com.allianz.webapps.secondController;

import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.allianz.webapps.https.interfaces.type001.pojo.User;
import com.allianz.webapps.https.interfaces.util.ObjectUtil;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * 
 * @author 陈涛
 * 
 */
@Controller(value = "inform")
public class OrderCallbackController {
	
	@Autowired
	private ObjectMapper objectMapper;
	
	@Autowired
	private ObjectUtil objectUtil;
	
	@RequestMapping(value = "orderCallback")
	public String toOrderCallback() {
		return "views/page/callback";
	}
	
	@RequestMapping(value = "getOrderCallbacks")
	@ResponseBody
	public Map<String, String> getOrderCallbacks(HttpSession session) throws Exception {
		User user = (User) session.getAttribute("username");
		String resultStr = objectUtil.requestParam(user, "apk.orderCallback");
		
		return null;
	}
}
